#!/bin/sh

# called by uscan with '--upstream-version' <version> <file>

tar xf $3 --exclude '*.gif' --exclude '*.pdf' --exclude '*.html' 
make -C cvxopt-$2/doc clean

tar czf $3 cvxopt-$2
rm -rf cvxopt-$2

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $3 $origDir
  echo "moved $3 to $origDir"
fi

exit 0
